package cn.bugstack.middleware.dynamic.thread.pool.sdk.domain.model.entity;

/**
 * @author 线程池告警配置实体
 * @description 线程池告警配置实体对象
 */
public class ThreadPoolAlarmEntity {

    /**
     * 应用名称
     */
    private String appName;

    /**
     * 线程池名称
     */
    private String threadPoolName;

    /**
     * 是否开启告警
     */
    private boolean alarmEnabled = false;

    /**
     * 活跃线程数阈值，超过该值触发告警
     */
    private int activeCountThreshold;

    /**
     * 队列容量阈值百分比，超过该值触发告警 (0-100)
     */
    private int queueCapacityThreshold;

    /**
     * 告警通知类型：mail、sms、dingding等
     */
    private String notifyType;

    /**
     * 告警接收人
     */
    private String receivers;

    public ThreadPoolAlarmEntity() {
    }

    public ThreadPoolAlarmEntity(String appName, String threadPoolName) {
        this.appName = appName;
        this.threadPoolName = threadPoolName;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getThreadPoolName() {
        return threadPoolName;
    }

    public void setThreadPoolName(String threadPoolName) {
        this.threadPoolName = threadPoolName;
    }

    public boolean isAlarmEnabled() {
        return alarmEnabled;
    }

    public void setAlarmEnabled(boolean alarmEnabled) {
        this.alarmEnabled = alarmEnabled;
    }

    public int getActiveCountThreshold() {
        return activeCountThreshold;
    }

    public void setActiveCountThreshold(int activeCountThreshold) {
        this.activeCountThreshold = activeCountThreshold;
    }

    public int getQueueCapacityThreshold() {
        return queueCapacityThreshold;
    }

    public void setQueueCapacityThreshold(int queueCapacityThreshold) {
        this.queueCapacityThreshold = queueCapacityThreshold;
    }

    public String getNotifyType() {
        return notifyType;
    }

    public void setNotifyType(String notifyType) {
        this.notifyType = notifyType;
    }

    public String getReceivers() {
        return receivers;
    }

    public void setReceivers(String receivers) {
        this.receivers = receivers;
    }
}